package com.teckteam.ptvsystem.controller;

import javax.swing.JOptionPane;

import com.teckteam.ptvsystem.view.PTVUserInterface;

/**
 * Thrown exception saying PTV timetable pages suck bad because
 * they break program functionality when the site breaks or changes something.
 */
public class PTVSiteSucksException extends Exception
{
   public PTVSiteSucksException(String stopID)
   {
      JOptionPane
      .showOptionDialog(
            PTVUserInterface.getInstance(),
            "PTV has changed content that has caused this error. Please contact PTV and\n" +
            "quote the number: " + stopID,
            "Problem with PTV website", JOptionPane.DEFAULT_OPTION,
            JOptionPane.ERROR_MESSAGE, null, null, null);
   }
}
